﻿@model FilmBookingTicket.Models.Theater

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}


<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <table class="table striped bordered hovered" style="margin :0px 0px 0px 40px">
        <tr>
            <td>
                <div class="editor-label">
                    @Html.LabelFor(model => model.TheaterName)
                </div>
            </td>
            <td>
                <div class="editor-label">
                    @Html.LabelFor(model => model.SupplierId, "Supplier")
                </div>
            </td>
            <td>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Address)
                </div>
            </td>
            <td>
                <div class="editor-label">
                    @Html.LabelFor(model => model.PhoneNumber)
                </div>
            </td>

        </tr>
        <tr>
            <td>
                <div class="input-control text">
                    @Html.EditorFor(model => model.TheaterName)
                    @Html.ValidationMessageFor(model => model.TheaterName)
                </div>
            </td>
            <td>

                <div class="input-control text">
                    @Html.DropDownList("SupplierId", String.Empty)
                    @Html.ValidationMessageFor(model => model.SupplierId)
                </div>

            </td>
            <td>
                <div class="input-control text">
                    @Html.EditorFor(model => model.Address)
                    @Html.ValidationMessageFor(model => model.Address)
                </div>

            </td>
            <td>
                <div class="input-control text">
                    @Html.EditorFor(model => model.PhoneNumber)
                    @Html.ValidationMessageFor(model => model.PhoneNumber)
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="Create" /></td>
        </tr>
        <tr>
            <td>
                <div>
                    @Html.ActionLink("Back to List", "Index")
                </div>
            </td>
        </tr>
    </table>

}


